package com.泛型;

public class Test {
/*结果
hello
120
 */
    public static void main(String[] args) {
        GenericsDemo<String> demo = new GenericsDemo<>();
        demo.setT("hello");
        System.out.println(demo.getT());

        GenericsDemo<Integer> integerGenericsDemo = new GenericsDemo<>();
        integerGenericsDemo.setT(120);
        System.out.println(integerGenericsDemo.getT());
    }
}
